SWEN-340: Data Representation - Homework 2 Instructions: 1. Assume all values are stored in the smallest variable size necessary for the value to fit. (I.E. 8 bit values are stored in a char and 16 bit values are stored in a short). (Signed value uses 2's complement format). 2. Provide hexadecimal values in 0x... format (C language format) 3. Edit this text file and record your answer. 4. Also for every answer show the manual steps required to arrive at you answer by editing this text file. 5. Submit your edited text file to the MyCourses assignment folder "Homework 1". All submissions MUST be text files. 6. All questions are worth one point Questions: 1. Convert decimal 95 to hexadecimal. Answer: Reasoning: 2. Convert 0x1CD to unsigned decimal. (Hint: Convert it to binary first!) Answer: Reasoning: 3. What is the value of binary 10101011 in decimal if this is a negative number? Decimal Answer: Reasoning: 4. What is the value of binary 111001111 in decimal if this is an unsigned number? Decimal Answer: Reasoning: 5. Add 0x8BCD and 0x02E6 (assume unsigned numbers): Hexadecimal Answer: Reasoning: 6. Add 8 bit binary integers 10101111 and 11011011 Hexadecimal Answer: Reasoning: 7. How many bits are in each of the following data types? a. Byte Answer: b. Short Answer: c. Int Answer: d. Long Answer: e. Nibble Answer: